package com.molichuxing.services.infrastructure.dto.response;

import java.time.LocalDateTime;

import com.molichuxing.framework.dto.ResponseRootDto;
import com.molichuxing.services.business.dto.response.OrderBizDto;
import com.molichuxing.services.property.OrderTypeEnum;

import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
public class OrderDto extends ResponseRootDto {
	private static final long serialVersionUID = 3754347721372704559L;

	private Integer id;

	/**
	 * 订单号
	 */
	private Long orderCode;

	/**
	 * 订单类型
	 */
	private OrderTypeEnum type;

	/**
	 * 是否删除(0：正常，1：删除)
	 */
	private Boolean isDelete;

	public OrderDto setType(Integer type) {
		this.type = type == null ? null : OrderTypeEnum.getEnum(type);
		return this;
	}
}
